local jLootz = jLootz
local lib = jLootz:NewModule("History")

function lib:OnDisable()
	self.db = nil
end

function lib:OnEnable()
	self.db = {}
	jLootz.RegisterCallback(self, "LOOT_ITEM")
	jLootz.RegisterCallback(self, "LOOT_MONEY")
end

function lib:LOOT_ITEM(...)
	table.insert(self.db, {"LOOT_ITEM", ...})
end

function lib:LOOT_MONEY(...)
	table.insert(self.db, {"LOOT_MONEY", ...})
end
